package com.content.management.domain.dto;

import com.content.management.domain.entity.DictionaryData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author xinghu
 * @version 1.0
 * @date 2020/4/4 7:45 下午
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "增加所属分类", description = "增加所属分类")
public class ClassificationAddDto {

	@ApiModelProperty(value = "主键id 存在即为修改不存在则为新增")
	private Long id;

	@ApiModelProperty(value = "所属分类")
	private String classification;


	public DictionaryData to() {
		DictionaryData data = new DictionaryData();
		data.setDictionaryData(classification);
		data.setId(this.id);
		return data;
	}
}
